home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1990 / 05 / window.inc < prev    next >
Text File  |  1990-07-02  |  1KB  |  84 lines

  1.     .xlist                ; window.inc
  2.  
  3. ; (c) 1990 Soft Advances, all rights reserved.
  4.  
  5. NULL_PARENT    equ    0
  6. NULL_SIBLING    equ    0
  7. NULL_WINDOW    equ    0
  8. WINDOW_MAX    equ    50
  9. TEXT_MAX    equ    128
  10.  
  11.  
  12. ; color equates
  13. ;
  14. BLACK_PIXEL    equ    0
  15. WHITE_PIXEL    equ    1
  16.  
  17.  
  18. ; request codes
  19. ;
  20. W_CreateWindow        equ    1
  21. W_DestroyWindow        equ    3
  22. W_Text            equ    47
  23.  
  24. ; reply codes
  25. ;
  26. W_Reply            equ    0
  27. W_Error            equ    -1
  28.  
  29. ; reply error codes
  30. ;
  31. BadRequest        equ    1    ; bad request code
  32. BadValue        equ    2    ; integer parameter out of range
  33. BadWindow        equ    3    ; parameter not a window
  34. BadAlloc        equ    12    ; insufficient resources
  35. BadColor        equ    13    ; no such color
  36.  
  37.  
  38. ; reply structure definitions
  39. ;
  40. _WRep struc                ; server reply/event
  41.   WRep_code        dw    ?
  42.   WRep_p1        dw    ?
  43.   WRep_p2        dw    ?
  44.   WRep_p3        dw    ?
  45.   WRep_p4        dw    ?
  46.   WRep_p5        dw    ?
  47. _WRep ends
  48. SIZEOF_WREP        equ    (size _WRep)
  49.  
  50. ; error reply
  51. ;
  52. WRep_error_code        equ    WRep_p1
  53.  
  54. ; CreateWindow
  55. ;
  56. WRep_windowId        equ    WRep_p1
  57.  
  58.  
  59. ; request structure definitions
  60. ;
  61. _WReq struc
  62.   WReq_code        db    ?
  63.   WReq_func        db    ?
  64.   WReq_windowId        dw    ?
  65.   WReq_p1        dw    ?
  66.   WReq_p2        dw    ?
  67.   WReq_p3        dw    ?
  68.   WReq_p4        dw    ?
  69.   WReq_text        db    TEXT_MAX dup(?)
  70. _WReq ends
  71. SIZEOF_WREQ        equ    (size _WReq - size WReq_text)
  72.  
  73. ; CreateWindow
  74. ;
  75. WReq_y_x        equ    WReq_p1
  76. WReq_height_width    equ    WReq_p2
  77.  
  78. ; Text
  79. ;
  80. WReq_count        equ    WReq_p2
  81. WReq_attribute        equ    WReq_p3
  82.  
  83.     .list                ; end of window.inc
  84.